﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data;

/// <summary>
/// Summary description for IUserProfiles
/// </summary>
public interface IUserProfiles
{
    /// <summary>
    /// Get UserProfile by user
    /// </summary>
    /// <param name="user">Object User</param>
    /// <returns>Return UserProfile </returns>
    UserProfiles GetUserProfileOfUser(Users user);

    /// <summary>
    /// Create object UserProfile
    /// </summary>
    /// <param name="username">Object User</param>
    /// <param name="name">Name of object User</param>
    /// <param name="gender">Gender of object User</param>
    /// <param name="datebirth">Datebirth of object User</param>
    /// <param name="city">City of object User</param>
    /// <param name="people">People of object User</param>
    /// <param name="avata">Avatar of object User</param>
    /// <param name="interests">Interests of object User</param>
    /// <param name="jobs">Jobs of object User</param>
    /// <returns>Return result was created. If created then return 1, else return 0</returns>
    bool CreateUserProfile(Users user, string name, bool gender, DateTime datebirth, string city, string people, string avata, string interests, string jobs,DateTime Createtime);

    /// <summary>
    /// Update object UserProfile
    /// </summary>
    /// <param name="userProfile">Object UserProfile need to update</param>
    /// <returns>>Return result was updated. If success then return 1, else return 0</returns>
    bool UpdateUserProfile(UserProfiles userProfile);

    /// <summary>
    /// Convert object DataRow to object UserProfiles
    /// </summary>
    /// <param name="dr">Object DataRow from DataTable</param>
    /// <returns>Return object User was converted</returns>
    UserProfiles ConvertObjectDataRowToUserProfiles(DataRow dr);

    bool UpdateAvatarUserProfiles(UserProfiles UserPr);

    List<UserProfiles> GetFriendUser(Users admin);

    List<UserProfiles> FindUserWithByName(string Ten);
}